package cn.school.workflow.vo;

import cn.school.common.BaseVO;
import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("t_workflow_leave_apply")
@Data
public class LeaveApplyVO extends BaseVO {

    private static final long serialVersionUID = -3677923428110310250L;

    @ApiModelProperty(value = "申请单编号")
    private String applyNo;

    @ApiModelProperty(value = "流程ID")
    private String processId;

    @ApiModelProperty(value = "请假开始时间")
    private String leaveStartTime;

    @ApiModelProperty(value = "请假结束时间")
    private String leaveEndTime;

    @ApiModelProperty(value = "请假总天数")
    private String leaveTotalTime;

    @ApiModelProperty(value = "请假类型")
    private String leaveType;

    @ApiModelProperty(value = "请假理由")
    private String leaveRemarks;

    @ApiModelProperty(value = "附件")
    private String leaveFile;

    @ApiModelProperty(value = "请假状态 0-草稿 1-待审批 2-审批被驳回 3-流程正常结束 4-撤销")
    private String status;

    @ApiModelProperty(value = "当前审批人")
    private String currApprovedBy;

    @ApiModelProperty(value = "审批部门")
    private String approvedDept;

    @ApiModelProperty(value = "抄送人")
    private String ccUsers;

    @TableField(exist = false)
    private String times;

    @TableField(exist = false)
    private Integer pageNum;
    @TableField(exist = false)
    private Integer pageSize;
    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();


}
